package com.pig4cloud.pigx.contract.constant;

import com.pig4cloud.pigx.common.customize.contants.SystemConfigConstants;

/**
 * 合约模块Schedule常量
 *
 * @since 2022/8/31 14:46
 */
public interface ContractScheduleConstants {
    /**
     * 发布深度图计算任务 间隔
     *
     * @deprecated 深度图目前为查询时当场计算
     */
    @Deprecated
    long PUBLISH_INTERVAL_DEPTH_MAP = 200L * SystemConfigConstants.INTERVAL_MULTIPLE;

    /**
     * 发布逐仓仓位强平检查触发器 间隔
     */
    long PUBLISH_INTERVAL_POSITION_LIQUIDATE_ISOLATE_CHECK_TRIGGER = 200L * SystemConfigConstants.INTERVAL_MULTIPLE;

    /**
     * 发布止盈止损触发器 间隔
     */
    long PUBLISH_INTERVAL_STOP_ORDER_TRIGGER = 200L * SystemConfigConstants.INTERVAL_MULTIPLE;

    /**
     * 发布仓位检查保证金触发器 间隔
     */
    long PUBLISH_INTERVAL_POSITION_MARGIN_CHECK_TRIGGER = 1000L * SystemConfigConstants.INTERVAL_MULTIPLE;

    /**
     * 逐仓仓位强平扫描器 间隔
     */
    long INTERVAL_POSITION_LIQUIDATE_ISOLATE_SCANNER = 200L * SystemConfigConstants.INTERVAL_MULTIPLE;

    /**
     * 止盈止损扫描器 间隔
     */
    long INTERVAL_STOP_ORDER_SCANNER = 200L * SystemConfigConstants.INTERVAL_MULTIPLE;

    /**
     * 全仓仓位计算触发器 间隔
     */
    long INTERVAL_POSITION_CROSS_CALCULATE_TRIGGER = 200L * SystemConfigConstants.INTERVAL_MULTIPLE;
}
